package health.lm.com.shop.presenter;

import health.lm.com.component_base.base.mvp.contract.XPresent;
import health.lm.com.network.callback.SimpleCallBack;
import health.lm.com.shop.activity.CompanyMemberListActivity;
import health.lm.com.shop.entity.HLMyCompanyEntity;
import health.lm.com.shop.entity.MemberListResponse;
import health.lm.com.shop.model.MallModel;

/**
 * Created by Android Studio .
 * Project：hlian health.lm.com.shop.presenter
 * Date：2019/8/24 14:31
 * Introduce：商会会员列表页面
 */
public class CompanyMemberListPresenter extends XPresent<CompanyMemberListActivity> {
    public void getData(String id,int page,int page_size,String sername) {
        MallModel.getInstance().getMemberListData(id, page, page_size, sername, new SimpleCallBack<MemberListResponse>() {
            @Override
            public void onSuccess(MemberListResponse pResponse) {
                if (hasV()) getV().setNewData(pResponse.getMember_list());
            }
        });
    }
}
